<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>新增伪元素选择器</title>
    <style>
        /* 在css 中添加装饰性样式，增加html的简洁*/
        div {
            width: 200px;
            height: 200px;
            background-color: pink;

        }

        div::before {
            /* 必须要写的属性，不写会出错 */
            content: '我';
        }

        div::after {
            content: 'zuipiaoliangde';
        }

        /* 伪类选择器的权重为1和标签选择器一样 */
    </style>
</head>

<body>
    <div>是</div>
</body>

</html>